/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.cor;

/**
 *
 * @author Nashief
 */
public class MercuryHandler extends PlanetHandler {
    
    public void handleRequest(PlanetEnum request){
    
        if(request==PlanetEnum.MERCURY){
        System.out.println("Mercury handler handles"+request);
        System.out.println("Mercury is hot:\n");
        }else{
        System.out.println("MercuryHandler doesnt handle"+request);
        if(successor!=null){
        successor.handleRequest(request);
        }
        }
    
    }
}
